<ul class="page-sidebar-menu  page-header-fixed page-sidebar-menu-hover-submenu " data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="100">
    {foreach $list_admin_menu as $menu}
    <!--一级菜单-->
    <li class="nav-item ks-menu">
        <a href="{if $menu.url}{:url($menu.url)}{/if}" class="nav-link nav-toggle">
            <i class="{$menu.icon}"></i>
            <span class="title">{$menu.name}</span>
            <span class="selected"></span>
            <span class="arrow"></span>
        </a>
        {if $menu.children}
        <ul class="sub-menu">
            {foreach $menu.children as $menu_son}
            <!--二级菜单-->
            <li class="nav-item">
                <a href="{if $menu_son.url}{:url($menu_son.url)}{/if}" class="nav-link">
                    <i class="{$menu_son.icon}"></i>
                    <span class="title">{$menu_son.name}</span>
                    <span class="selected"></span>
                    <span class="arrow nav-toggle"></span>
                </a>
                {if $menu_son.children}
                <ul class="sub-menu">
                    {foreach $menu_son.children as $menu_son2}
                    <!--三级菜单-->
                    <li class="nav-item">
                        <a href="{if $menu_son2.url}{:url($menu_son2.url)}{/if}" class="nav-link"><i class="{$menu_son2.icon}"></i> 
                            <span class="title">{$menu_son2.name}</span>
                            <span class="selected"></span>
                            <span class="arrow nav-toggle"></span>
                        </a>
                        {if $menu_son2.children}
                        <ul class="sub-menu">
                            {foreach $menu_son2.children as $menu_son3}
                            <!--四级菜单-->
                            <li class="nav-item">
                                <a href="{if $menu_son3.url}{:url($menu_son3.url)}{/if}" class="nav-link"><i class="{$menu_son3.icon}"></i> 
                                    <span class="title">{$menu_son3.name}</span>
                                    <span class="selected"></span>
                                    <span class="arrow"></span>
                                </a>
                            </li>
                            {/foreach}
                        </ul>
                        {/if}
                    </li>
                    {/foreach}
                </ul>
                {/if}
            </li>
            {/foreach}
        </ul>
        {/if}
    </li>
    {/foreach}
</ul>